export default {
  debug: true,
  state: {
    cartItemQuantity: 0
  },
  setCartItemQuantityAction (step) {
    if (this.state.cartItemQuantity < 1 && step < 0) {
      this.state.cartItemQuantity = 0
      return
    }
    this.state.cartItemQuantity += step
    if (this.debug) {
      console.log('setCartItemQuantityAction triggered with', this.state.cartItemQuantity)
    }
  }
}
